package com.example.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: Andrew
 * @create: 2019-04-12 09:22
 **/

@RestController
public class Hello {


    @GetMapping(value = "/hello")
    public String hello(String str){

        return "hello"+str;
    }

    @GetMapping(value = "map")
    public Map getMap(){
        Map map=new HashMap();
        map.put("age","12");
        map.put("name","张三");
        map.put("sex","男");
        return map;
    }
}
